package com.mdz.nc.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2020-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ks_question")
public class KsQuestion extends Model<KsQuestion> {

    private static final long serialVersionUID=1L;

    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    @TableField("bank_id")
    private Integer bankId;

    @TableField("questions")
    private String questions;

    @TableField("level_nd")
    private String levelNd;

    @TableField("question")
    private String question;

    @TableField("optional_answer")
    private Integer optionalAnswer;

    @TableField("optional_a")
    private String optionalA;

    @TableField("optional_b")
    private String optionalB;

    @TableField("optional_c")
    private String optionalC;

    @TableField("optional_d")
    private String optionalD;

    @TableField("optional_e")
    private String optionalE;

    @TableField("optional_f")
    private String optionalF;

    @TableField("answer")
    private String answer;


    @Override
    protected Serializable pkVal() {
        return this.questionId;
    }

}
